package Arr;

import java.util.Arrays;

public class tosring {
    public static String tosring(int[]arr){
        if(arr==null||arr.length==0){
//            String s = "[]";
            return "[]";

        }
        return "[" + String.join(", ",
                Arrays.stream(arr).mapToObj(String::valueOf).toArray(String[]
                        ::new)) + "]";

    }
}
